﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	request.setCharacterEncoding("UTF-8");
	String htmlData = request.getParameter("content1") != null
			? request.getParameter("content1")
			: "";
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<link rel="shortcut icon" href="image/favicons.ico" type="image/x-icon" />
<link rel="stylesheet" href="<%=basePath%>common/default/default.css" />
<link rel="stylesheet"
	href="<%=basePath%>common/plugins/code/prettify.css" />
<script charset="utf-8" src="<%=basePath%>common/lang/kindeditor.js"></script>
<script charset="utf-8" src="<%=basePath%>common/lang/zh_CN.js"></script>
<script charset="utf-8"
	src="<%=basePath%>common/plugins/code/prettify.js"></script>
<!-- Main content -->
<section class="content" id="refundcontent">
<div class="row">
	<div class="col-md-12">

		<div class="box box-danger">
			<c:if test="${type==1}">
				<div class="box-header">

					<section class="content-header">
					<h1>
						<ol class="breadcrumb">
							<li>
								<a href="<%=basePath%>admin/img?type=${type }"><i
									class="fa fa-th-list fa-lg"></i>列表</a>
							</li>
							<li>
								添加导航图片
							</li>
						</ol>
					</h1>


					</section>
				</div>
				<div class="box-body">
					<!-- phone mask -->
					<div class="form-group">

						<div class="bg-info" style="padding: 10px;">
							<p>
								<form name="example" method="post" action="addin?type=${type }"
									accept-charset="UTF-8">

									<div class="box box-info" style="height: 300px; width: 500px;">
										<div class="box-header">
											<h3 class="box-title">
												导航图设置
												<span style="font-size: 12px"></span>
											</h3>
										</div>
										<div class="box-body" style="height: auto; overflow: hidden;">
											<!-- Color Picker -->
											<div class="form-group">
												<img id="img" src=" " width="307px" height="178px" />

												<label style="position: absolute; top: 10px; right: 10px;"
													for="fileupload_input" class="btn btn-info">
													上传图片
												</label>
												<input type="file" name="files" id="fileupload_input"
													multiple style="display: none" />
												<input type="hidden" name="imgurl" id="picurl" value="" />

											</div>
											<!-- /.form group -->
										</div>
										<!-- /.box-body -->
									</div>
									<!-- /.box -->

									<br />
									<input class="btn  btn-info btn-xs info" type="submit"
										name="button" value="提交内容" />
									<a href="img?type=${type }" class="btn  btn-info btn-xs info"
										style="width: 100px;">返回</a>
								</form>
							</p>
						</div>
						<div class="form-group">

						</div>
						<!-- /.form group -->

					</div>
					<!-- /.form group -->

				</div>
				<!-- /.box-body -->
			</c:if>
			<c:if test="${type==2}">
				<div class="box-header">

					<section class="content-header">
					<h1>
						<ol class="breadcrumb">
							<li>
								<a href="<%=basePath%>admin/img?type=${type }"><i
									class="fa fa-th-list fa-lg"></i>列表</a>
							</li>
							<li>
								添加二维码图片
							</li>
						</ol>
					</h1>


					</section>
				</div>
				<div class="box-body">
					<!-- phone mask -->
					<div class="form-group">

						<div class="bg-info" style="padding: 10px;">
							<p>
								<form name="example" method="post" action="addin?type=${type }"
									accept-charset="UTF-8">
									标题：<input style="margin-right: 80px;" type="text" name="title"
										value="" />
									<br>
									<div class="box box-info" style="height: 300px; width: 500px;">
										<div class="box-header">
											<h3 class="box-title">
												二维码设置
												<span style="font-size: 12px"></span>
											</h3>
										</div>
										<div class="box-body" style="height: auto; overflow: hidden;">
											<!-- Color Picker -->
											<div class="form-group">
												<img id="img" src=" " width="307px" height="178px" />

												<label style="position: absolute; top: 10px; right: 10px;"
													for="fileupload_input" class="btn btn-info">
													上传图片
												</label>
												<input type="file" name="files" id="fileupload_input"
													multiple style="display: none" />
												<input type="hidden" name="imgurl" id="picurl" value="" />

											</div>
											<!-- /.form group -->
										</div>
										<!-- /.box-body -->
									</div>
									<!-- /.box -->

									<br />
									<input class="btn  btn-info btn-xs info" type="submit"
										name="button" value="提交内容" />
									<a href="img?type=${type }" class="btn  btn-info btn-xs info"
										style="width: 100px;">返回</a>
								</form>
							</p>
						</div>
						<div class="form-group">

						</div>
						<!-- /.form group -->

					</div>
					<!-- /.form group -->

				</div>
				<!-- /.box-body -->
			</c:if>
			<c:if test="${type==3}">
				<div class="box-header">

					<section class="content-header">
					<h1>
						<ol class="breadcrumb">
							<li>
								<a href="<%=basePath%>admin/img?type=${type }"><i
									class="fa fa-th-list fa-lg"></i>列表</a>
							</li>
							<li>
								添加地图
							</li>
						</ol>
					</h1>


					</section>
				</div>
				<div class="box-body">
					<!-- phone mask -->
					<div class="form-group">

						<div class="bg-info" style="padding: 10px;">
							<p>
								<form name="example" method="post" action="addin?type=${type }"
									accept-charset="UTF-8">
									
									<div class="box box-info" style="height: 300px; width: 500px;">
										<div class="box-header">
											<h3 class="box-title">
												地图设置
												<span style="font-size: 12px"></span>
											</h3>
										</div>
										<div class="box-body" style="height: auto; overflow: hidden;">
											<!-- Color Picker -->
											<div class="form-group">
												<img id="img" src=" " width="307px" height="178px" />

												<label style="position: absolute; top: 10px; right: 10px;"
													for="fileupload_input" class="btn btn-info">
													上传图片
												</label>
												<input type="file" name="files" id="fileupload_input"
													multiple style="display: none" />
												<input type="hidden" name="imgurl" id="picurl" value="" />

											</div>
											<!-- /.form group -->
										</div>
										<!-- /.box-body -->
									</div>
									<!-- /.box -->

									<br />
									<input class="btn  btn-info btn-xs info" type="submit"
										name="button" value="提交内容" />
									<a href="img?type=${type }" class="btn  btn-info btn-xs info"
										style="width: 100px;">返回</a>
								</form>
							</p>
						</div>
						<div class="form-group">

						</div>
						<!-- /.form group -->

					</div>
					<!-- /.form group -->

				</div>
				<!-- /.box-body -->
			</c:if>
			<c:if test="${type==4}">
				<div class="box-header">

					<section class="content-header">
					<h1>
						<ol class="breadcrumb">
							<li>
								<a href="<%=basePath%>admin/img?type=${type }"><i
									class="fa fa-th-list fa-lg"></i>列表</a>
							</li>
							<li>
								联系方式
							</li>
						</ol>
					</h1>


					</section>
				</div>
				<div class="box-body">
					<!-- phone mask -->
					<div class="form-group">

						<div class="bg-info" style="padding: 10px;">
							<p>
								<form name="example" method="post" action="addin?type=${type }"
									accept-charset="UTF-8">

									
									电话：
									<input style="margin-right: 80px;" type="text" name="phone"
										value="" />
									<br>
									<br>
									邮箱：
									<input style="margin-right: 80px;" type="text" name="email"
										value="" />
									<br>
									<br>
									
									地址：
									<input style="margin-right: 80px;" type="text" name="adress"
										value="" />
									<br>
									<br>
									<!-- /.box -->

									<br />
									<input class="btn  btn-info btn-xs info" type="submit"
										name="button" value="提交内容" />
									<a href="img?type=${type }" class="btn  btn-info btn-xs info"
										style="width: 100px;">返回</a>
								</form>
							</p>
						</div>
						<div class="form-group">

						</div>
						<!-- /.form group -->

					</div>
					<!-- /.form group -->

				</div>
				<!-- /.box-body -->
			</c:if>
			<c:if test="${type==5}">
				<div class="box-header">

					<section class="content-header">
					<h1>
						<ol class="breadcrumb">
							<li>
								<a href="<%=basePath%>admin/img?type=${type }"><i
									class="fa fa-th-list fa-lg"></i>列表</a>
							</li>
							<li>
								添加动态图片
							</li>
						</ol>
					</h1>


					</section>
				</div>
				<div class="box-body">
					<!-- phone mask -->
					<div class="form-group">

						<div class="bg-info" style="padding: 10px;">
							<p>
								<form name="example" method="post" action="addin?type=${type }"
									accept-charset="UTF-8">
									标题：<input style="margin-right: 80px;" type="text" name="title"
										value="" />
									<br>
									<div class="box box-info" style="height: 300px; width: 500px;">
										<div class="box-header">
											<h3 class="box-title">
												滚动图设置
												<span style="font-size: 12px"></span>
											</h3>
										</div>
										<div class="box-body" style="height: auto; overflow: hidden;">
											<!-- Color Picker -->
											<div class="form-group">
												<img id="img" src=" " width="307px" height="178px" />

												<label style="position: absolute; top: 10px; right: 10px;"
													for="fileupload_input" class="btn btn-info">
													上传图片
												</label>
												<input type="file" name="files" id="fileupload_input"
													multiple style="display: none" />
												<input type="hidden" name="imgurl" id="picurl" value="" />

											</div>
											<!-- /.form group -->
										</div>
										<!-- /.box-body -->
									</div>
									<!-- /.box -->

									<br />
									<input class="btn  btn-info btn-xs info" type="submit"
										name="button" value="提交内容" />
									<a href="img?type=${type }" class="btn  btn-info btn-xs info"
										style="width: 100px;">返回</a>
								</form>
							</p>
						</div>
						<div class="form-group">

						</div>
						<!-- /.form group -->

					</div>
					<!-- /.form group -->

				</div>
				<!-- /.box-body -->
			</c:if>
		</div>
		<!-- /.box -->

	</div>
	<!-- /.col (left) -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->

<script type="text/javascript">
     		  
		$("#fileupload_input").fileupload({
		    url:"<%=basePath%>admin/uploadImg",
		done : function(e, result) {

			$("#img").attr("src", result.result.entity);
			$("#picurl").val(result.result.entity);

		}
	});
</script>
